<?php
elgg_register_event_handler('init', 'system', 'commentfilter_init');

function commentfilter_init() {
	elgg_unregister_action('comments/add');
	$action_path = elgg_get_plugins_path() . 'Comment Filter/actions/comments';
    elgg_register_action('comments/add', "$action_path/add.php"); 
}